export default {
  // 上部分背景图修改
  setTopBg (state, str) {
    state.topBgClass = str
  },
  // 变换标题
  setHeaderTitle (state, str) {
    state.headerTitle = str
  },
  // 切换登录状态
  changeLoginStatus (state, bool) {
    state.isLogin = bool
  },
  // 将页面加入keep-alive
  keepIn (state, keepComponent) {
    state.includes.push(keepComponent)
  },
  // 将页面从keep-alive中除去
  keepOut (state) {
    state.includes = []
  },
  // 跳转到设备详情页的标题
  setDeviceName (state, str) {
    state.deviceName = str
  }
}
